The label command may be used for sections and figure captions, but must come immediately after the section or caption commands with no intervening whitespace.